﻿<!-- 引入线路 -->
<%@page import="com.mmy.domain.visa.TVisaBase"%>
<%@page import="com.mmy.domain.visa.TVisaStuff"%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
	</head>
	<body>
		<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
						<div class="row">
							<div class="span-5 col">
								<h1>签证管理</h1>
							</div>	
							
						 </div >
					</div>
				</header>
				<section class="container">
					
					
					<!-- 修改签证材料信息 -->
					<div class="information" >
					
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>修改签证材料信息
						</h4>
					<div class="input-container">
					<input type="button" id="btn_addtr" class="btn" value="增行" onClick="addTableStuff()" >

					<table id="tripTable" class="info-table">
<tbody>
		<tr>
		<td colspan="6">详情 <input type="hidden" id="VisaID"  name="VisaID" value="${VisaID }"/></td>
		<td>操作</td>
		</tr>
</tbody>
  <c:forEach items="${newTVisaStuff}" var="tVisaStuff" varStatus="status" begin="0" >
<tbody id="tbody${status.index }">
<tr>
<th rowspan="2"><label for="StuffNo${status.index }">序号</label></th>
<td rowspan="2"><input type="number" id="StuffNo${status.index }" name="No" size="2"   value="${tVisaStuff.getNo() }"/></td>
<th ><label for="VisaStuffName${status.index }">材料名称</label></th>
<td >
<input type="text" id="VisaStuffName${status.index }" name="StuffName"  value="${tVisaStuff.getStuffName() }"/></td>
<th ><label for="VisaStuffNumber${status.index }">所需数量</label></th>
<td ><input type="number" id="VisaStuffNumber${status.index }" name="Number"  value="${tVisaStuff.getNumber() }"/></td>
<td rowspan="2"><input type="button"  class="btn" onclick="removeStuffTr(${status.index })" value="删除"></td> 
</tr>
<tr>
<td><label for="VisaStuffMemo${status.index }">备注:</label></td>
<td colspan="3" ><textarea id="VisaStuffMemo${status.index }" name="Memo"> ${tVisaStuff.getMemo() }</textarea></td>
</tr>
</tbody>	

	</c:forEach>			
			</table>
			<center>
				<input type="submit" class="btn" value="保存" onclick="saveUpdateVisaStuff()"/>
				
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
			</center> 
			</div>
			
			</div>
			</section>
			</article>
			</main>
			<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>

</html>